home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / With.au3 < prev   
Text File  |  2007-09-08  |  186b  |  11 lines

  1. $oExcel = ObjCreate("Excel.Application")
  2. $oExcel.visible =1
  3. $oExcel.workbooks.add
  4.  
  5. With $oExcel.activesheet
  6.     .cells(2,2).value = 1
  7.     .range("A1:B2").clear
  8. EndWith
  9.  
  10. $oExcel.quit
  11.